import { getRequest, postRequest } from '@/lib/request';
export const userApi = {
	loginByApp: (param) => {
	  return postRequest('', param)
	},
	getUserInfo:(uid)=>{
		return getRequest('/v1/get_userinfo?user_id='+uid,false)
	},
	sendCode: (phone) => {
		return getRequest('/user/front/users/code/send?phone=' + phone)
	},
	loginByCode:(param)=>{
		return postRequest('/v1/login',param)
	},
	getMyJob:(uid)=>{
		return getRequest('/v1/get_process?user_id='+uid,false)
	},
};